import request from '@/utils/request';

export function register(pat) {
    return request({
        url: '/pat/register',
        method: 'post',
        params: {
            ...pat
        }
    });
}

export function fetchUser(token) {
    return request({
        url: '/pat/getUser',
        method: 'post',
        params: {
            token: token
        }
    });
}

export function renewPatient(pat) {
    return request({
        url: '/pat/update',
        method: 'post',
        params: {
            ...pat
        }
    });
}
